docker run -itd -p 3307:3306   -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7.33




show variables like '%log_bin%';


create database binlog_test_01;



show binlog events in 'binlog.000001'


# 在user库中

alter user user() identified by ‘password';

alter user 'root'@'localhost' identified with mysql_native_password by '123456';

flush privileges;


修改localhost 为% 开启远程登陆

update mysql.user set host='%' where user='root';
